package Test;

import java.io.IOException;

public class Test {
    public static void main(String[] args) throws InterruptedException, IOException {
        Runtime r = Runtime.getRuntime();
        System.out.println(r.availableProcessors());
        System.out.println(r.totalMemory()/ 1024.0/ 1024.0 + "MB");
        System.out.println(r.freeMemory()/ 1024.0/ 1024.0 + "MB");
        Process p = r.exec("D:\\QQ.exe");
        Thread.sleep(5000);// 暂停五秒
        p.destroy();
    }
}
